/*
 * stm32_uart.h
 *
 *  Created on: 2022年4月14日
 *      Author: 叶大鹏
 */

#ifndef LIB_STM32_UART_LIB_STM32_UART_H_
#define LIB_STM32_UART_LIB_STM32_UART_H_

#include "My_RB_FIFO.h"
#include "stm32_uart.h"
#include "stm32_uart_config.h"

void stm32_uart_init(void);
void stm32_uart_send(uint8_t port, uint8_t *p_data, uint16_t len);
uint16_t stm32_uart_recv(uint8_t port, uint8_t *p_data, uint16_t len, uint32_t wait_tick);
void stm32_uart_idle_handler(UART_HandleTypeDef *huart);

#endif /* LIB_STM32_UART_LIB_STM32_UART_H_ */
